Skip to content

feat!(backend): graphql authorization#1245

Draft
lusergit wants to merge 1 commit intoedgehog-device-manager:mainfrom
lusergit:push-tmqpulmrskxn
Draft

feat!(backend): graphql authorization#1245
lusergit wants to merge 1 commit intoedgehog-device-manager:mainfrom
lusergit:push-tmqpulmrskxn

Conversation

@lusergit
Copy link
Collaborator

initialize edgehog authorization.

Adds an authorization layer, providing an actor to queries trough the token claims. Such actor is then used to authorize the query/mutation and allow subscriptions.

Checklist

  • I have read the CONTRIBUTING.md
  • I have added tests that prove my fix is effective or that my feature works
  • I have added or updated documentation (if appropriate)

Adds an authorization layer, providing an actor to queries trough the token
claims. Such actor is then used to authorize the query/mutation and allow
subscriptions.

The claims structures is unchanged, the actor only contains a map with the
matched claims and is not persisted in the database, but rather passed down the
context of triggered actions.

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant